﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

/// <summary>
/// 设备最新值
/// </summary>
[Index("vc_guid", Name = "idxdclguid")]
[Index("vc_d_guid", Name = "idxdguid")]
[Index("vc_key", Name = "idxkey")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_value_current
{
    [Key]
    public long vc_id { get; set; }

    [Required]
    [StringLength(50)]
    public string vc_guid { get; set; }

    [Required]
    [StringLength(50)]
    public string vc_d_guid { get; set; }

    /// <summary>
    /// 值key
    /// </summary>
    [Required]
    public string vc_key { get; set; }

    /// <summary>
    /// 值value
    /// </summary>
    [StringLength(255)]
    public string vc_value { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? vc_add_time { get; set; }

    /// <summary>
    /// 说明
    /// </summary>
    [StringLength(255)]
    public string vc_remark { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(255)]
    public string vc_name { get; set; }
}
